/*
 * @Date: 2023-03-21 16:12:46
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-21 16:16:07
 * @FilePath: \A19\backend\src\api\Remove\ApiRemoveStu.ts
 */
import { ApiCall } from "tsrpc";
import { ReqRemoveStu, ResRemoveStu } from "../../shared/protocols/Remove/PtlRemoveStu";
import { Global } from '../../Global/index';

export default async function (call: ApiCall<ReqRemoveStu, ResRemoveStu>) {
    // TODO
    const ret = await Global.collection('selectCourses').deleteOne({
        course:call.req.courseId,
        student:call.req.stuId
    })    

    call.succ({})
}